﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/RightFrame.Master"
    CodeBehind="SendMessage.aspx.cs" Inherits="MyOA.UI.Message.MessageManage.SendMessage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphTitle" runat="server">
    当前位置：消息发送
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContnent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
        <ContentTemplate>

            <script type="text/javascript" src="../../js/ymPrompt.js"></script>

            <script language="javascript" type="text/javascript">
                var Alert=ymPrompt.alert;
                var Error=ymPrompt.errorInfo;
                function href() {
                    document.location.href = "ManageMessage.aspx";
                }
                function hrefSendmessage() {
                    document.location.href = "SendMessage.aspx";
                }
        function DispalyDiv() {
            document.getElementById("divUsers").style.display = "block";
        }
            </script>
 <div class="body_title">消&nbsp;&nbsp;息&nbsp;&nbsp;发&nbsp;&nbsp;送</div>
            <div style="text-align: center; position:relative;top:30px;">
                <div style="font-size: 12px; width: 95%; text-align: left">
                    消息主题：<asp:TextBox ID="txtTitle" runat="server" CssClass="inputCss" Width="373px"></asp:TextBox>
                    <asp:RequiredFieldValidator Style="position: relative" ID="rfvTitile" runat="server"
                        ControlToValidate="txtTitle" ErrorMessage="主题不能为空"></asp:RequiredFieldValidator><br />
                    消息内容：<asp:TextBox ID="txtContent" runat="server" CssClass="inputCss" Width="581px"
                        Height="85px" TextMode="MultiLine"></asp:TextBox><br />
                    &nbsp; &nbsp; &nbsp;<asp:RequiredFieldValidator ID="rfvContent" runat="server" ControlToValidate="txtContent"
                        ErrorMessage="内容不能为空！" Display="Dynamic"></asp:RequiredFieldValidator>
                    预约他人：<img style="cursor: hand" id="imgSelect" alt="请点击选择用户" onclick="DispalyDiv()"
                        src="../../images/admin2.gif" border="0" runat="server" />
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
                    <div style="width: 18%" visible="false">
                        <asp:ListBox ID="lbReceiveUsers" runat="server" Width="218px" Height="128px" BackColor="#7CCCFd"
                            SelectionMode="Multiple"></asp:ListBox>
                    </div>
                    <asp:Button ID="btnDelReceiveUser" OnClick="btnDelReceiveUser_Click" runat="server"
                        CausesValidation="false" CssClass="buttonCss" Text="删除收件人" 
                        style="height: 20px"></asp:Button>&nbsp;
                    <div style=" display:none; background-color: Gray; z-index: 100; left: 45%; overflow: auto; width: 25%;
                        position: absolute; top: 5%; height: 100%; text-align: left" Id="divUsers" >
                        <asp:TreeView ID="tvUsers" runat="server" Width="156px" OnSelectedNodeChanged="tvUsers_SelectedNodeChanged">
                        </asp:TreeView>
                    </div>
                    创建者：<asp:Label Style="position: relative" ID="lblCreateUser" runat="server" Width="100px"
                        Text="Label"></asp:Label>
                    创建日期：<asp:Label Style="position: relative; top: 0px; left: 23px;" ID="lblCreateTime"
                        runat="server" Width="146px" Text="Label"></asp:Label><br />
                    <br />
                    <asp:Button ID="btnSendMessage" OnClick="btnSendMessage_Click" runat="server" CssClass="buttonCss"
                        Text="发送消息"></asp:Button>
                    <asp:Button ID="btnDraftMessage" OnClick="btnDraftMessage_Click" runat="server" CssClass="buttonCss"
                        Text="保存到草稿箱"></asp:Button>
                    <asp:Button ID="btnCancel" OnClick="btnCancel_Click" runat="server" CausesValidation="false"
                        CssClass="buttonCss" Text="取消"></asp:Button>&nbsp;
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
